//app.js
App({
  onLaunch: function () {
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        // env 参数说明：
        //   env 参数决定接下来小程序发起的云开发调用（wx.cloud.xxx）会默认请求到哪个云环境的资源
        //   此处请填入环境 ID, 环境 ID 可打开云控制台查看
        //   如不填则使用默认环境（第一个创建的环境）
        // env: 'my-env-id',
        traceUser: true,
      })
    }
    this.globalData = {},
      wx.getSystemInfo({
        success: e => {
          this.globalData.StatusBar = e.statusBarHeight;
          let capsule = wx.getMenuButtonBoundingClientRect();
          if (capsule) {
            this.globalData.Custom = capsule;
            this.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
          } else {
            this.globalData.CustomBar = e.statusBarHeight + 50;
          }
        }
      })
  },
  globalData: {
    ColorList: [{
      title: '嫣红',
      name: 'red',
      color: '#e54d42'
    },
    {
      title: '桔橙',
      name: 'orange',
      color: '#f37b1d'
    },
    {
      title: '明黄',
      name: 'yellow',
      color: '#fbbd08'
    },
    {
      title: '橄榄',
      name: 'olive',
      color: '#8dc63f'
    },
    {
      title: '森绿',
      name: 'green',
      color: '#39b54a'
    },
    {
      title: '天青',
      name: 'cyan',
      color: '#1cbbb4'
    },
    {
      title: '海蓝',
      name: 'blue',
      color: '#0081ff'
    },
    {
      title: '姹紫',
      name: 'purple',
      color: '#6739b6'
    },
    {
      title: '木槿',
      name: 'mauve',
      color: '#9c26b0'
    },
    {
      title: '桃粉',
      name: 'pink',
      color: '#e03997'
    },
    {
      title: '棕褐',
      name: 'brown',
      color: '#a5673f'
    },
    {
      title: '玄灰',
      name: 'grey',
      color: '#8799a3'
    },
    {
      title: '草灰',
      name: 'gray',
      color: '#aaaaaa'
    },
    {
      title: '墨黑',
      name: 'black',
      color: '#333333'
    },
    {
      title: '雅白',
      name: 'white',
      color: '#ffffff'
    },
    ]
  },
  images_left:[
    {
      src:'https://pic.netbian.com/uploads/allimg/240913/232359-1726241039b966.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240913/225930-17262395700630.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240820/225626-1724165786fe22.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240820/225520-17241657209f99.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240809/163640-1723192600e510.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/170822/193931-1503401971f04b.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240706/200713-1720267633d87b.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240514/000621-17156163816cd1.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240903/153601-172534896126b3.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240528/213609-17169033698cd1.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240514/000811-171561649130d1.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240410/231923-171276236337fe.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240331/235547-1711900547a74c.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240304/005016-17094846164b90.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240906/155136-1725609096c863.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240906/155251-17256091718aff.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240709/180747-172051966748e1.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240716/175558-172112375888ad.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240709/180531-1720519531c859.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240709/180257-1720519377636e.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240624/002258-17191597788f38.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240108/003055-1704645055114c.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/231228/235124-1703778684f7f7.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240816/171305-1723799585b6ca.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240723/173809-1721727489c030.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240723/173511-17217273114d4a.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240621/194207-1718970127a210.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240621/193906-1718969946513f.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240621/185703-1718967423c42a.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240621/185917-17189675573d81.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/180428/190401-1524913441234d.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/180703/153946-1530603586f0c0.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/181118/111853-1542511133259e.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240909/163154-17258707140d31.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240906/155448-1725609288a1a7.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240911/191612-1726053372457e.jpg',
      type:5
    }
  ],
  images_right:[
    {
      src:'https://pic.netbian.com/uploads/allimg/240913/231154-1726240314cc66.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240829/224556-17249427561308.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240827/173907-17247515471406.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240731/214759-172243367974d5.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240724/235652-17218366126320.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240716/175919-1721123959a8f3.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240626/201604-17194041643290.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240528/214044-1716903644e798.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240514/001028-171561662856e6.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240303/184217-170946253794c1.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240203/120355-170693303572e8.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240122/002144-1705854104c5dd.jpg',
      type:1
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240624/002026-171915962635e7.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240316/003227-1710520347a7a3.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240314/235406-1710431646dd39.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240314/235135-171043149517e2.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240305/192533-1709637933e14a.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240223/123552-17086629521752.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240223/123442-17086628829873.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240303/174325-1709459005f33a.jpg',
      type:2
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240114/230816-1705244896c73b.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240903/153043-172534864331e5.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240903/151357-1725347637abd5.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240816/172957-1723800597074d.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240816/172830-17238005104c0b.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240816/172640-1723800400a29c.jpg',
      type:4
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/220205/233208-16440751283a59.jpg',
      type:3
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/190221/204415-15507530552278.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/190221/204523-15507531231ae2.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/220716/233815-1657985895c537.jpg',
      type:5
    },
    {
      src:'https://pic.netbian.com/uploads/allimg/240911/193124-172605428406ce.jpg',
      type:5
    }
  ]
})

